package com.teach.javafxclient;

import com.teach.javafxclient.controller.base.MainFrameController;
import javafx.scene.control.ProgressIndicator;
import kong.unirest.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Liang Jianlin
 * @date 2024-04-25 20:12
 */
public class Globalvar {

    public static MainFrameController MFC;
    public static Map<String,String> courseStateColorMap = new HashMap<>();
    public static Map<String,String> courseTypeColorMap = new HashMap<>();
    static {
        courseTypeColorMap.put("通识核心课", "#cef3c7");
        courseTypeColorMap.put("通识选修课", "#fbeeff");
        courseTypeColorMap.put("学科基础课", "#fae3e3");
        courseTypeColorMap.put("专业基础课", "#d6e8ff");
        courseTypeColorMap.put("专业限选课", "#fcffc9");
    }
//    public static String baseUrl = "http://localhost:8080";
    public static String baseUrl = "http://10.147.17.120:8080";
    public static String userRole;
    public static String userName;
    public static Long specificId;
    public static String userToken;
    public static JSONObject currentTerm = new JSONObject();
    public static void setCurrentTerm(JSONObject jo) {
        currentTerm = jo;
    }
}
